<!DOCTYPE html>
<html lang="zh-Hans-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width" />
    <meta name="robots" content="all" />
    <title>留言板</title>
    <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css" th:href="@{/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" href="../static/layui/css/layui.css" th:href="@{/layui/css/layui.css}" />
    <link rel="stylesheet" href="../static/css/master.css" th:href="@{/css/master.css}" />
    <link rel="stylesheet" href="../static/css/gloable.css" th:href="@{/css/gloable.css}" />
    <link rel="stylesheet" href="../static/css/nprogress.css" th:href="@{/css/nprogress.css}" />
    <link rel="stylesheet" href="../static/css/message.css" th:href="@{/css/message.css}" />
</head>
<body>
    <div class="header">
    </div>
    <header class="gird-header">
        <div class="header-fixed">
            <div class="header-inner">
                <a href="javascript:void(0)" class="header-logo" id="logo">Mr.CY</a>
                <nav class="nav" id="nav">
                    <ul>
                        <li><a href="index">首页</a></li>
                        <li><a href="article">博客</a></li>
                        <li><a href="diary">日记</a></li>
                        <li><a href="navigation">导航</a></li>
                        <li><a href="link">友链</a></li>
                        <li><a href="message">留言</a></li>
                        <li><a href="about">关于</a></li>
                    </ul>
                </nav>
                <a href="https://wpa.qq.com/msgrd?v=3&uin=315717288&site=qq&menu=yes" class="blog-user">
                    <i class="fa fa-qq"></i>
                </a>
                <a class="phone-menu">
                    <i></i>
                    <i></i>
                    <i></i>
                </a>
            </div>
        </div>
    </header>
    <div class="doc-container" id="doc-container">
        <div class="container-fixed">
            <div class="container-inner">
                <section class="msg-remark">
                    <h1>留言板</h1>
                    <p>
                        沟通交流，拉近你我！
                    </p>
                </section>
                <div class="textarea-wrap message" id="textarea-wrap">
                    <form class="layui-form blog-editor" action="">
                        <div class="layui-form-item">
                            <textarea name="editorContent" lay-verify="content" id="remarkEditor" placeholder="请输入内容" class="layui-textarea layui-hide"></textarea>
                        </div>
                        <div class="layui-form-item">
                            <button class="layui-btn" lay-submit="formLeaveMessage" lay-filter="formLeaveMessage">提交留言</button>
                        </div>
                    </form>
                </div>
            </div>
            <div class="mt20">
                <ul class="message-list" id="message-list">

                    <li th:each="messageVo:${messageVoList}" class="zoomIn article">
                        <div class="comment-parent">
                            <a name="remark-1"></a>
                            <img th:src="*{messageVo.getUser().getAvatar()}" src="https://thirdqq.qlogo.cn/qqapp/101465933/7627F745B95BFAC18C6C481FE72B4EB1/100" />
                            <div class="info">
                                <span th:text="*{messageVo.getUser().getNickname()}" class="username">燕十三</span>
                            </div>
                            <div th:text="*{messageVo.getContent()}" class="comment-content">
                                剑气纵横三万里
                            </div>
                            <p class="info info-footer">
                                <span th:text="*{messageVo.getCreateDate()}" class="comment-time">2018-01-01</span>
                                <a href="javascript:;" class="btn-reply" data-targetid="1" data-targetname="燕十三">回复</a>
                            </p>
                        </div>
                        <hr />
                        <div th:if="${messageVo.getChildrens()}!=null" th:each="children:${messageVo.getChildrens()}" class="comment-child">
                            <a name="reply-1"></a>
                            <img th:src="*{children.getToUser().getAvatar()}" src="https://thirdqq.qlogo.cn/qqapp/101465933/7627F745B95BFAC18C6C481FE72B4EB1/100">
                            <div class="info">
                                <span th:text="*{children.getToUser().getNickname()}" class="username">燕十四</span>
                                <span style="padding-right:0;margin-left:-5px;">回复</span>
                                <span th:text="*{children.getUser().getNickname()}" class="username">燕十三</span>
                                <span th:text="*{children.getContent()}">一剑光寒十九洲</span>
                            </div>
                            <p class="info">
                                <span th:text="*{children.getCreateDate()}" class="comment-time">2018-01-01</span>
                                <a href="javascript:;" class="btn-reply" data-targetid="2" data-targetname="燕十四">回复</a>
                            </p>
                        </div>
                        <div class="replycontainer layui-hide">
                            <form class="layui-form" action="">
                                <input type="hidden" name="remarkId" value="1">
                                <input type="hidden" name="targetUserId" value="0">
                                <div class="layui-form-item">
                                    <textarea name="replyContent" lay-verify="replyContent" placeholder="请输入回复内容" class="layui-textarea" style="min-height:80px;"></textarea>
                                </div>
                                <div class="layui-form-item">
                                    <button class="layui-btn layui-btn-xs" lay-submit="formReply" lay-filter="formReply">提交</button>
                                </div>
                            </form>
                        </div>
                    </li>
                    <!--/*-->
                    <li class="zoomIn article">
                        <div class="comment-parent">
                            <a name="remark-1"></a>
                            <img src="https://thirdqq.qlogo.cn/qqapp/101465933/7627F745B95BFAC18C6C481FE72B4EB1/100" alt="{{name}}" />
                            <div class="info">
                                <span class="username">燕十三</span>
                            </div>
                            <div class="comment-content">
                                剑气纵横三万里
                            </div>
                            <p class="info info-footer">
                                <i class="fa fa-map-marker" aria-hidden="true"></i>
                                <span>四川</span>
                                <span class="comment-time">2018-01-01</span>
                                <a href="javascript:;" class="btn-reply" data-targetid="1" data-targetname="燕十三">回复</a>
                            </p>
                        </div>
                        <div class="replycontainer layui-hide">
                            <form class="layui-form" action="">
                                <input type="hidden" name="remarkId" value="1">
                                <input type="hidden" name="targetUserId" value="0">
                                <div class="layui-form-item">
                                    <textarea name="replyContent" lay-verify="replyContent" placeholder="请输入回复内容" class="layui-textarea" style="min-height:80px;"></textarea>
                                </div>
                                <div class="layui-form-item">
                                    <button class="layui-btn layui-btn-xs" lay-submit="formReply" lay-filter="formReply">提交</button>
                                </div>
                            </form>
                        </div>
                    </li>
                    <li class="zoomIn article">
                        <div class="comment-parent">
                            <a name="remark-1"></a>
                            <img src="https://thirdqq.qlogo.cn/qqapp/101465933/7627F745B95BFAC18C6C481FE72B4EB1/100"/>
                            <div class="info">
                                <span class="username">燕十三</span>
                            </div>
                            <div class="comment-content">
                                剑气纵横三万里
                            </div>
                            <p class="info info-footer">
                                <i class="fa fa-map-marker" aria-hidden="true"></i>
                                <span>四川</span>
                                <span class="comment-time">2018-01-01</span>
                                <a href="javascript:;" class="btn-reply" data-targetid="1" data-targetname="燕十三">回复</a>
                            </p>
                        </div>
                        <hr />
                        <div class="replycontainer layui-hide">
                            <form class="layui-form" action="">
                                <input type="hidden" name="remarkId" value="1">
                                <input type="hidden" name="targetUserId" value="0">
                                <div class="layui-form-item">
                                    <textarea name="replyContent" lay-verify="replyContent" placeholder="请输入回复内容" class="layui-textarea" style="min-height:80px;"></textarea>
                                </div>
                                <div class="layui-form-item">
                                    <button class="layui-btn layui-btn-xs" lay-submit="formReply" lay-filter="formReply">提交</button>
                                </div>
                            </form>
                        </div>
                    </li>
                    <!--*/-->
                </ul>
            </div>
        </div>
    </div>
    <footer class="grid-footer">
        <div class="footer-fixed">
            <div class="copyright">
                <div class="info">
                    <div class="contact">
                        <a href="#" class="github" target="_blank"><i class="fa fa-github"></i></a>
                        <a href="https://wpa.qq.com/msgrd?v=3&uin=315717288&site=qq&menu=yes" class="qq" target="_blank" title="315717288"><i class="fa fa-qq"></i></a>
                        <a href="#" class="email" target="_blank" title="315717288@qq.com"><i class="fa fa-envelope"></i></a>
                        <a href="#" class="weixin"><i class="fa fa-weixin"></i></a>
                    </div>
                    <p class="mt05">
                        Copyright © 2022-2022 梦长安 All Rights Reserved V.1.0.0 | <a style="color: #8c939d" href="https://beian.miit.gov.cn/">黔ICP备2021010648号-1</a>
                    </p>
                </div>
            </div>
        </div>
    </footer>
    <script src="../static/layui/layui.js" th:src="@{/layui/layui.js}"></script>
    <script src="../static/js/yss/gloable.js" th:src="@{/js/yss/gloable.js}"></script>
    <script src="../static/js/plugins/nprogress.js" th:src="@{/js/plugins/nprogress.js}"></script>
    <script>NProgress.start();</script>
    <script src="../static/js/pagemessage.js" th:src="@{/js/pagemessage.js}"></script>
    <script>NProgress.start();</script>
    <script> 
        window.onload = function () {
            NProgress.done();
        };
    </script>
</body>
</html>
